﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sc.Domain
{
    public partial class Car_UseCarApplication
    {
        /// <summary>
        /// 待办事宜路径
        /// </summary>
        public string ToDoUrl { get; set; }
        /// <summary>
        /// 申请人姓名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 机构ID
        /// </summary>
        public int OrgzNo { get; set; }
        /// <summary>
        /// 被申诉ID
        /// </summary>
        public int OldId { get; set; }
        /// <summary>
        /// 驾驶员姓名
        /// </summary>
        public string DriverName { get; set; }
        /// <summary>
        /// 所派车辆
        /// </summary>
        public string CarNo { get; set; }
        /// <summary>
        /// 申请意见
        /// </summary>
        public List<Opinions> OpinionList { get; set; }
        /// <summary>
        /// 评分列表
        /// </summary>
        public IList<DriverScore> DriverScoreList { get; set; }
        /// <summary>
        /// 组织机构
        /// </summary>
        public string Orgz { get; set; }
        /// <summary>
        /// 是否审核
        /// </summary>
        public bool IsApproal { get; set; }
        /// <summary>
        /// 车型
        /// </summary>
        public string CarTypeName { get; set; }
        /// <summary>
        /// 用车状态
        /// </summary>
        public string StateName
        {
            get
            {
                var str = string.Empty;
                switch (InstanceState)
                {
                    case 0: str = "创建";
                        break;
                    case 1: str = "审核中";
                        break;
                    case 2: str = "拒绝";
                        break;
                    case 3: str = "通过";
                        break;
                    case 4: str = "已派车";
                        break;
                    case 5: str = "已还车";
                        break;
                    case 6: str = "已取消";
                        break;
                }
                return str;
            }
        }
    }
    public partial class Car_Accident
    {
        /// <summary>
        /// 待办事宜路径
        /// </summary>
        public string ToDoUrl { get; set; }
        /// <summary>
        /// 申请人姓名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 机构ID
        /// </summary>
        public int OrgzNo { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        public IList<TempModel> AttactList { get; set; }
        /// <summary>
        /// 申请意见
        /// </summary>
        public List<Opinions> OpinionList { get; set; }
        /// <summary>
        /// 伤亡人员明细
        /// </summary>
        public IList<Car_AccidentDetail> DetailList { get; set; }
        /// <summary>
        /// 车牌
        /// </summary>
        public string CarNo { get; set; }
        /// <summary>
        /// 事故等级
        /// </summary>
        public string IgGradeName { get; set; }
    }
    public partial class Car_FillGasoline
    {
        /// <summary>
        /// 待办事宜路径
        /// </summary>
        public string ToDoUrl { get; set; }
        /// <summary>
        /// 机构ID
        /// </summary>
        public int OrgzNo { get; set; }
        /// <summary>
        /// 申请人姓名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        public IList<TempModel> AttactList { get; set; }
        /// <summary>
        /// 申请意见
        /// </summary>
        public List<Opinions> OpinionList { get; set; }
        /// <summary>
        /// 所派车辆
        /// </summary>
        public string CarNo { get; set; }
        /// <summary>
        /// 加油类型
        /// </summary>
        public string BaseItemName { get; set; }
        /// <summary>
        /// 支付类型
        /// </summary>
        public string FgTypeName
        {
            get
            {
                var str = string.Empty;
                switch (FgType)
                {
                    case 0: str = "记账";
                        break;
                    case 1: str = "油卡";
                        break;
                    case 2: str = "付现";
                        break;
                }
                return str;
            }
        }
    }
    public partial class Car_Illegal
    {
        /// <summary>
        /// 待办事宜路径
        /// </summary>
        public string ToDoUrl { get; set; }
        /// <summary>
        /// 机构ID
        /// </summary>
        public int OrgzNo { get; set; }
        /// <summary>
        /// 申请人姓名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        public IList<TempModel> AttactList { get; set; }
        /// <summary>
        /// 申请意见
        /// </summary>
        public List<Opinions> OpinionList { get; set; }
        /// <summary>
        /// 所派车辆
        /// </summary>
        public string CarNo { get; set; }
    }
    public partial class Car_Insurance
    {
        /// <summary>
        /// 待办事宜路径
        /// </summary>
        public string ToDoUrl { get; set; }
        /// <summary>
        /// 机构ID
        /// </summary>
        public int OrgzNo { get; set; }
        /// <summary>
        /// 申请人姓名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        public IList<TempModel> AttactList { get; set; }
        /// <summary>
        /// 申请意见
        /// </summary>
        public List<Opinions> OpinionList { get; set; }
        /// <summary>
        /// 所派车辆
        /// </summary>
        public string CarNo { get; set; }
    }
    public partial class Car_Maintain
    {
        /// <summary>
        /// 待办事宜路径
        /// </summary>
        public string ToDoUrl { get; set; }
        /// <summary>
        /// 机构ID
        /// </summary>
        public int OrgzNo { get; set; }
        /// <summary>
        /// 申请人姓名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        public IList<TempModel> AttactList { get; set; }
        /// <summary>
        /// 申请意见
        /// </summary>
        public List<Opinions> OpinionList { get; set; }
        /// <summary>
        /// 所派车辆
        /// </summary>
        public string CarNo { get; set; }
        /// <summary>
        /// 车辆状态
        /// </summary>
        public int CarState { get; set; }
        /// <summary>
        /// 车辆状态中文
        /// </summary>
        public string CarStateName { get; set; }
        /// <summary>
        /// 维修等级
        /// </summary>
        public string MtGradeName { get; set; }
        /// <summary>
        /// 维修方式
        /// </summary>
        public string MtTypeName { get; set; }
    }
    public partial class Car_Maintenance
    {
        /// <summary>
        /// 待办事宜路径
        /// </summary>
        public string ToDoUrl { get; set; }
        /// <summary>
        /// 机构ID
        /// </summary>
        public int OrgzNo { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        public IList<TempModel> AttactList { get; set; }
        /// <summary>
        /// 申请意见
        /// </summary>
        public List<Opinions> OpinionList { get; set; }
        /// <summary>
        /// 评分
        /// </summary>
        public IList<DriverScore> DriverScoreList { get; set; }
        /// <summary>
        /// 所派车辆
        /// </summary>
        public string CarNo { get; set; }
        /// <summary>
        /// 车辆状态中文
        /// </summary>
        public string CarStateName { get; set; }
        /// <summary>
        /// 车辆状态
        /// </summary>
        public int CarState { get; set; }
    }
    /// <summary>
    /// 车辆信息
    /// </summary>
    public partial class CarInfo
    {
        /// <summary>
        /// 驾驶员姓名
        /// </summary>
        public string DriverName { get; set; }
        /// <summary>
        /// 车类型
        /// </summary>
        public string CarTypeName
        {
            get;
            set;
        }
        /// <summary>
        /// 状态名称
        /// </summary>
        public string StateName
        {
            get
            {
                var str = string.Empty;
                switch (CarState)
                {
                    case 0: str = "未派出";
                        break;
                    case 1: str = "已派出";
                        break;
                    case 2: str = "维修中";
                        break;
                    case 3: str = "保养中";
                        break;
                }
                return str;
            }
        }
    }
    public partial class SendCarRecord
    {
        /// <summary>
        /// 申请人
        /// </summary>
        public int ApplicationId { get; set; }
    }
    /// <summary>
    /// 临时模型
    /// </summary>
    public class TempModel
    {
        /// <summary>
        /// 业务ID
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 附件名称
        /// </summary>
        public string FileName { get; set; }
        /// <summary>
        /// 文件路径
        /// </summary>
        public string FileUrl { get; set; }
    }
    /// <summary>
    /// 公用机构模型
    /// </summary>
    public class CommOrgz
    {
        /// <summary>
        /// 机构ID
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 机构名称
        /// </summary>
        public string OrgzName { get; set; }
    }
    /// <summary>
    /// 模型
    /// </summary>
    public class ScModel
    {
        /// <summary>
        /// 司机姓名
        /// </summary>
        public string DriverName { get; set; }
        /// <summary>
        /// 车牌号
        /// </summary>
        public string CarNo { get; set; }
        /// <summary>
        /// 司机电话
        /// </summary>
        public string DriverPhone { get; set; }
    }

    public partial class BaseItem
    {
        /// <summary>
        /// 大类名称
        /// </summary>
        public string BaseItemTypeName { get; set; }
    }
    /// <summary>
    /// 检查登记
    /// </summary>
    public partial class CheckType
    {
        /// <summary>
        /// 车牌号
        /// </summary>
        public string CarNo { get; set; }
        /// <summary>
        /// 检查类型
        /// </summary>
        public string BaseItemName { get; set; }
        /// <summary>
        /// 所属单位
        /// </summary>
        public string OrgzName { get; set; }
    }
    //报废扩展模型
    public partial class CarScrap
    {
        /// <summary>
        /// 车牌号
        /// </summary>
        public string CarNo { get; set; }
        /// <summary>
        /// 机构名称
        /// </summary>
        public string OrgzName { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        public IList<TempModel> AttactList { get; set; }
    }
    /// <summary>
    /// 模型扩展(培训)
    /// </summary>
    public partial class Train
    {
        /// <summary>
        /// 培训明细列表
        /// </summary>
        public IList<TrainDetail> TrainDetailList { get; set; }
        /// <summary>
        /// 培训单位
        /// </summary>
        public string OrgzName { get; set; }
        /// <summary>
        /// 培训类型
        /// </summary>
        public string BaseItemName { get; set; }
    }
    /// <summary>
    /// 培训明细
    /// </summary>
    public partial class TrainDetail
    {
        /// <summary>
        /// 司机姓名
        /// </summary>
        public string Name { get; set; }
    }
    /// <summary>
    /// 证书扩展模型
    /// </summary>
    public partial class DriverCertificate
    {
        /// <summary>
        /// 司机名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 类型名称
        /// </summary>
        public string BaseItemName { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        public IList<TempModel> AttactList { get; set; }
    }
    /// <summary>
    /// 费用登记
    /// </summary>
    public partial class CostRegister
    {
        /// <summary>
        /// 费用类型
        /// </summary>
        public string BaseItemName { get; set; }
        /// <summary>
        /// 司机
        /// </summary>
        public string DriverName { get; set; }
        /// <summary>
        /// 登记单位
        /// </summary>
        public string OrgzName { get; set; }
        /// <summary>
        /// 车牌
        /// </summary>
        public string CarNoName { get; set; }
    }
    public partial class DriverScoreAppeals
    {
        public string ToDoUrl { get; set; }
        /// <summary>
        /// 申请人姓名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 机构ID
        /// </summary>
        public int OrgzNo { get; set; }
        /// <summary>
        /// 意见
        /// </summary>
        public List<Opinions> OpinionList { get; set; }
        /// <summary>
        /// 用车申请
        /// </summary>
        public Car_UseCarApplication UseCarApplication { get; set; }
        /// <summary>
        /// 保养
        /// </summary>
        public Car_Maintenance Maintenance { get; set; }
        /// <summary>
        /// 分数
        /// </summary>
        public decimal Score { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        public int Type { get; set; }
        /// <summary>
        /// 业务ID
        /// </summary>
        public int BussId { get; set; }
    }
    /// <summary>
    /// 保险
    /// </summary>
    public partial class InsuranceApply
    {
        public string ToDoUrl { get; set; }
        /// <summary>
        /// 申请人姓名
        /// </summary>
        public string UserName { get; set; }
        /// <summary>
        /// 机构ID
        /// </summary>
        public int OrgzNo { get; set; }
        /// <summary>
        /// 意见
        /// </summary>
        public List<Opinions> OpinionList { get; set; }
    }
    /// <summary>
    /// 车辆审核
    /// </summary>
    public partial class CarAudit
    {
        /// <summary>
        /// 车牌号
        /// </summary>
        public string CarNo { get; set; }
        /// <summary>
        /// 准载人数
        /// </summary>
        public int TakeCount { get; set; }
        /// <summary>
        /// 吨位
        /// </summary>
        public decimal ZcTonnage { get; set; }
        /// <summary>
        /// 审核分类
        /// </summary>
        public string BaseItemName { get; set; }
        /// <summary>
        /// 车辆类型
        /// </summary>
        public string CarTypeName { get; set; }
        /// <summary>
        /// 审核单位
        /// </summary>
        public string OrgzName { get; set; }
    }

}
